from django.conf.urls import url
from rest_framework.routers import DefaultRouter

from areas import views

urlpatterns = [

    #查询所有的省份
    # url(r'^areas/$',views.AreaProvinceView.as_view()),
    #
    # #查询一个区域
    # url(r'^areas/(?P<pk>\d+)/$',views.SubAreaView.as_view()),
    #
]

router = DefaultRouter()
router.register(r'areas',views.AreasVIewSet,base_name='areas')
urlpatterns += router.urls